.button {
    position: relative;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(180, 83, 107, .8);
    border-radius: 6px;
    transition: all 0.5s;
    cursor: pointer;
  }
  
  .X {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background-color: rgb(255, 255, 255);
    transform: translateX(-50%) rotate(45deg);
  }
  
  .Y {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background-color: #fff;
    transform: translateX(-50%) rotate(-45deg);
  }

  .button:hover {
    background-color: rgb(211, 21, 21);
  }
  
  .button:active {
    transform: scale(0.9);
    background-color: rgb(130, 0, 0);
  }
  
  .button:hover > .close {
    animation: close 0.2s forwards 0.25s;
  }
  
  @keyframes close {
    100% {
      opacity: 1;
    }
  }
  